from urllib import request

'''
resp = request.urlopen("http://www.baidu.com")

print(resp.read().decode("utf-8"))
'''

#模拟浏览器 
# GET 请求
'''
req = request.Request("http://www.baidu.com")
req.add_header("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0")

resp = request.urlopen(req)
print(resp.read().decode("utf-8"))
'''


#模拟浏览器 
# POST 请求



























